package com.mcxx.modules.miniSalvation.family.entity;

import com.mcxx.validate.group.Creation;
import com.mcxx.validate.group.Deletion;
import com.mcxx.validate.group.Update;
import com.yinhai.ta404.core.validate.annotation.V;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@ApiModel
@Data
public class MemberAssetsEntity implements Serializable{

	private static final long serialVersionUID = 7914364394583447862L;

    @V(value = {"notnull"},groups = {Update.class, Deletion.class})
	private String id;

	@ApiModelProperty(value = "家庭主体ID，必填")
    @V(value = {"notnull"},groups = {Creation.class, Update.class})
    private String familyId;

	@ApiModelProperty(value = "业务id，必填")
    @V(value = {"notnull"},groups = {Creation.class, Update.class})
    private String orderId;

	@ApiModelProperty(value = "成员ID，必填")
    @V(value = {"notnull"},groups = {Creation.class, Update.class})
    private String memberId;

    @ApiModelProperty(value = "财产/收支类型")
    @V(value = {"notnull"},groups = {Creation.class, Update.class})
    private String assetsType;

    @ApiModelProperty(value = "金额")
    @V(value = {"notnull"},groups = {Creation.class, Update.class})
    private Double quote;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
